<!DOCTYPE html>



		<!-- saved from url=(0054)http://globocom.github.io/bootstrap/examples/hero.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>ATOS DOS TABELIÃES</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="http://globocom.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="http://globocom.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="http://globocom.github.io/bootstrap/assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://globocom.github.io/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://globocom.github.io/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://globocom.github.io/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="http://globocom.github.io/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png">
  <style type="text/css"></style></head>

  <body cz-shortcut-listen="true">

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="http://globocom.github.io/bootstrap/examples/hero.html#">ATOS DOS TABELIÃES</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">About</a></li>
              <li><a href="#">Contact</a></li>
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                </ul>
              </li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container">

      <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="hero-unit">
        <form name="tabeliaesForm" action="" method="post">
			<fieldset>
				<label>
					<span><strong>I - Calcular escritura:</strong></span><br />
					<input type="text" name="escritura" value="">
				</label>
				<br />
				<input type="submit" name="enviar" value="Calcular">
			</fieldset>
		</form>

		<?php
			require_once 'config.php';
			//require_once 'tabelaEmolumentoTabeliaes';

			if (isset($_POST['enviar'])) {

				$query 	= "SELECT emolumento FROM tabeliaes WHERE escritura IN (SELECT min(escritura) FROM tabeliaes WHERE escritura>=$_POST[escritura])";
				//$query2 = "SELECT id FROM tabeliaes WHERE id < 50000";
				//$query3 = "SELECT id FROM tabeliaes WHERE id >= 50000";

				$result = mysql_query($query);
				//$result2 = mysql_query($query2);

				$parametroComplemento = 50000;

				$complemento1 = 16.25;
				$complemento2 = 112.50;

				while ($row = mysql_fetch_array($result)) {

					//echo "<strong>Resultado do Cálculo: ".$row['emolumento']."</strong>";
					if ($_POST['escritura'] < $parametroComplemento) {
						//echo "<strong>Resultado do Cálculo: ".($row['emolumento']+$complemento1)."</strong>";
						echo "<table border='1'>";
							echo "<tr>";
								echo "<td width='150'>Escritura(R$)</td>";
								echo "<td width='150'>Selo</td>";
								echo "<td width='150'>Valor Total</td>";
							echo "</tr>";
							echo "<tr>";
								echo "<td width='150'>".$row['emolumento']."</td>";
								echo "<td width='150'>".$complemento1."</td>";
								echo "<td width='150'>".($row['emolumento']+$complemento1)."</td>";
							echo "</tr>";
						echo "</table>";
					}else{
						echo "<table border='1'>";
							echo "<tr>";
								echo "<td width='150'>Escritura(R$)</td>";
								echo "<td width='150'>Selo</td>";
								echo "<td width='150'>Valor Total</td>";
							echo "</tr>";
							echo "<tr>";
								echo "<td width='150'>".$row['emolumento']."</td>";
								echo "<td width='150'>".$complemento1."</td>";
								echo "<td width='150'>".($row['emolumento']+$complemento2)."</td>";
							echo "</tr>";
						echo "</table>";

					}

				}

			}else;


		?>
		<h5>OBSERVAÇÕES:</h5>
		<p>Valor até R$ 50.000,00 - Selo = R$ 16,25</p>
		<p>Valor acima de R$ 50.000,00 - Selo = R$ 112,50</p>


      </div>

      <!-- Example row of columns -->
      <div class="row">
        <div class="span4">
          <h4>II - Procurações e substabelecimentos com um outorgante.</h4>
          <p>Incluindo traslado -- R$ 17,04</p>
		  <p>Para cada outorgante a mais -- R$ 1,11 </p>
		  <p>Obs: Em causa própria, mesmo valor do item "I" desta tabela.</p>
		  <br />
		  <h4>III- Reconhecimento de firmas</h4>
          <p>Por firma -- R$ 2,40 </p>
          <br/>
          <h4>IV- Autenticação de documento reprográfico</h4>
          <p>Por folha -- R$ 2,40</p>
        </div>
        <div class="span4">
          <h4>V- Escrituras sem valor declarado, inclusive declarações em notas</h4><p> R$ 32,52 </p>
          <h4>VI- Escritura de testamento, sua revogação e aprovação de testamento</h4>
          <p> R$ 217,10 </p>
          <br />
          <h4>VII- EEscritura de Convenção ou Especificação de Condomínio em planos horizontais ou suas modificações:  </h4>
          <p>Pela convenção -- R$ 27,17 </p>
          <p>Pela unidade autônoma -- R$ 2,73 </p>
        </div>
        <div class="span4">
          <h4>VIII - Cópia reprográfica de documento Arquivado no cartório</h4>
          <p>R$ 0,58</p>
          <br />
          <h4>IX- Pública forma, por folha</h4>
          <p>R$ 1,39 </p>
        </div>
      </div>

		<br />

      <div class="row">
      	<h4>OBSERVAÇÕES: </h4>
      	<p>
      		a) Se a escritura contiver mais de um ato, ainda que entre as mesmas partes, além do preço integral
      		do contrato de maior valor, se cobrado a quarta parte do preço dos demais contratos, observando-se
      		sempre o disposto na letra "e".
      	</p>
      	<br>
      	<p>b) Na permuta contam-se as custas sobre a soma dos valores.</p>
      	<br/>
      	<p>c) As buscas e as certidões serão cobradas pela Tabela comum a todos os serventuários, notários
			registradores.
		</p>
		<br />
		<p>d) Dos aditivos em escrituras com ou sem valor declarado, 50% das custas correspondentes desta tabela.</p>
		<p>e) Os atos praticados depois do horário normal ou fora do cartório ____ R$ 10,79</P>
      </div>

      <hr>

      <footer>
        <p>Desenvolvimento: Tribunal de Justiça de Alagoas - DIATE</p>
      </footer>

    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="./Bootstrap, from Twitter_files/jquery.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-transition.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-alert.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-modal.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-dropdown.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-scrollspy.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-tab.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-tooltip.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-popover.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-button.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-collapse.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-carousel.js"></script>
    <script src="./Bootstrap, from Twitter_files/bootstrap-typeahead.js"></script>



</body><object id="dabafb7a-fae9-b4a2-c909-2b8ab8979ea8" width="0" height="0" type="application/gas-events-abn"></object></html>

  </body>
</html>